package com.yfj.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yfj.dao.CourseDao;
import com.yfj.entity.Course;
import com.yfj.service.ManagerService;

@Service
public class ManagerServiceImpl implements ManagerService {
	
	@Autowired
	private CourseDao courseDao;

	@Override
	public void addCourse(Course c) {
		courseDao.addCourse(c);
	}
	
	@Override
	public List<Course> queryCourse(Map<String,Object> m) {
		List<Course> cList=courseDao.queryCourse(m);
		return cList;
	}
	
	@Override
	public void changeState(Map<String, Object> m) {
		courseDao.changeState(m);
	}
	
	@Override
	public void deleteCourse(long id) {
		courseDao.deleteCourse(id);
	}
	
}
